package com.zjj.day0504.book;

public class Book {
    private String type;
    private String name;
    private double price;

    public Book(String type, String name, double price) {
        this.type = type;
        this.name = name;
        this.price = price;
    }

    public Book() {
    }

    /**
     * 获取
     * @return type
     */
    public String getType() {
        return type;
    }

    /**
     * 设置
     * @param type
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return price
     */
    public double getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(double price) {
        this.price = price;
    }

    public String toString() {
        return "类型 = " + type + ", 书名 = " + name + ", 价格 = " + price ;
    }
}